/**
 * 
 */
package com.mvc.service.xt.impl;

import java.util.List;
import java.util.Map;

import org.huangqj.consant.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.xt.Reservation;
import com.mvc.service.xt.ReservationService;

/**
 * @author qingjie
 *
 */
@Service
public class ReservationServiceImpl implements ReservationService {
	
	@Autowired
	private BaseDaoI<Reservation> rBaseDaoI;

	@Override
	public List<Reservation> findReservations(Reservation reservation) {
		Map<String, Object> params = StringUtils.beanToMap(reservation);
		return rBaseDaoI.find(StringUtils.getHql("Reservation", params, ""),params);
	}

}
